<!--
 * @Description: file content
 * @Author: xiaofang lan
 * @Date: 2021-07-12 17:33:00
 * @LastEditors: xiaofang lan
 * @LastEditTime: 2021-07-13 19:01:00
-->
<template>
  <div class="legends">
    <div v-for="(item, index) in legendsVal" :key="index" style="margin-right: 17px">
      <span :style="{background: item.color}"></span>
      {{ item.value }}
    </div>
  </div>
</template>

<script>
export default {
  name: "legends",
  props: {
    legendsVal: {
      type: Array,
      default: () => []
    }
  }
};
</script>

<style lang="scss" scoped>
.legends {
  display: flex;
  font-size: 10px;
  color: rgba(161, 166, 187, 1);
  font-family: Source Han Sans CN;
  span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px 0 0;
    border-radius: 50%;
  }
}
</style>